﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace TicketMovie.User
{
    public partial class Site1 : System.Web.UI.MasterPage
    {
        private DataClasses1DataContext dc = new DataClasses1DataContext();
        protected void Page_Load(object sender, EventArgs e)
        {
            
            if (!Page.IsPostBack)
            {
                var fl = dc.Films.Where(kq => kq.img_banner!="").Distinct().Take(4).ToList();
                this.Repeater_silder.DataSource = fl;
                this.Repeater_silder.DataBind();
            }
        }
    }
}